import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
import get from '@dfeidao/atom-mobile/local/get';
import set from '@dfeidao/atom-mobile/local/set';
import render from '@dfeidao/atom-mobile/render/render';
import a010 from './a010';

export default async function a005(fd: IFeidaoAiMobile) {
	// 时长
	const start_time = get(fd, "start_time") as number;
	const end_time = get(fd, "end_time") as number;

	const time_length = Number((end_time - start_time) / 1000 / 60 / 60 / 24).toFixed(1);

	render(fd, { time_length });
	set(fd, "time_length", time_length);
	a010(fd);
}
